package com.ruoyi.circle.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.circle.domain.CircleMemberRelation;
import com.ruoyi.circle.mapper.CircleMemberRelationMapper;

/**
 * 圈子成员关系Dao接口
 *
 * @author 区嘉盛
 * @date 2025-06-09
 */
public interface ICircleMemberRelationDao extends IService<CircleMemberRelation> {

    default CircleMemberRelationMapper getMapper(){return (CircleMemberRelationMapper) getMapper();}

    /**
     * 添加圈子成员
     *
     * @param circleId 圈子ID
     * @param userId 用户ID
     * @param memberRole 成员角色
     * @return 结果
     */
    int addCircleMember(Long circleId, Long userId, Integer memberRole);
}